package ooday03.person;

class Person{
    String name;
    int age;
    String address;
    String occupation;

    public Person(String name,int age,String address,String occupation){
        this.name = name;
        this.age = age;
        this.address = address;
        this.occupation = occupation;

    }

    void eat(){
        System.out.println(name+occupation+"正在吃饭");
    }
    void sleep(){
        System.out.println(name+occupation+"正在睡觉");
    }
    void sayHi(){
        System.out.println(name+occupation+"你好");
    }

}


